<?php $is_selected = $sf_user->getCurrentRouteName() == $uri ?>
<li <?php if ($is_selected): ?>class="current_page_item"<?php endif ?>>
  <?php echo link_to($title, $uri) ?>
</li>
